﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity;
using System.Data.EntityModel;
using DAL_entity;
using DAL_entity.interfases;
using DAL_entity.entidades;

namespace DAL_entity.negocio
{
    public class medicos_negocio : DAL_entity.interfases.I_generica<MEDICOS> 
    {
        CONSULTNET ctx = new CONSULTNET();

        public List<MEDICOS> traerTodos()
        {
            var query = from p in ctx.MEDICOS select p;
            return query.ToList();
        }
        public List<MEDICOS> traerTodosPorEstudio(MEDICOS obj)
        {
            var query = from p in ctx.MEDICOS where p.ID_EMPLEADO == obj.ID_EMPLEADO    select p;
            return query.ToList();
        }

      

        public void insertar(MEDICOS obj)
        {
            throw new NotImplementedException();
        }

        public void modificar(MEDICOS obj)
        {
            throw new NotImplementedException();
        }

        public void borrar(MEDICOS obj)
        {
            throw new NotImplementedException();
        }
    }
}
